package gui;

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.FlowLayout;
import java.util.ArrayList;

import javax.swing.JPanel;

/**
 * 
 * @author Chrystopher
 * App's main frame's main panel.
 * Must contain other panels or internal frames.
 */
public class AppMainPanel extends JPanel{
	
	private ArrayList<IView> views;
	
	public AppMainPanel(){
		super();
		views = new ArrayList<IView>();
		setLayout(new BorderLayout());
	}
	
	public void add(IView view, String alignment){
		super.add((Component) view, alignment);
		views.add(view);
	}
	
	public void remove(IView view){
		super.remove((Component) view);
		views.remove(view);
	}

	public ArrayList<IView> getViews() {
		return views;
	}

	public void setViews(ArrayList<IView> views) {
		this.views = views;
	}

	public void add(IView slider, int right) {
		// TODO Auto-generated method stub
		
	}

}
